package com.token.webservice;

import com.alibaba.fastjson.JSONObject;
import com.token.sql.IntegrateSql;

/**
 * @author chenjianxiong
 * @date 2020/7/8
 */
public interface WebServiceMain {


    /**
     * 输入JSONString
     * @param jsonString
     * @throws Exception
     */
    void setInDataStr(String jsonString) throws Exception;


    /**
     * 开始处理
     * @param iSql
     * @throws Exception
     */
    void start(IntegrateSql iSql) throws Exception;

    /**
     * 写日志
     * @param iSql 类库
     * @param inStr JSON
     * @param result JSON
     * @throws Exception 错误
     */
    void writeLog(IntegrateSql iSql, String inStr, JSONObject result) throws Exception;

    /**
     * 输出JSON
     * @return JSON
     */
    JSONObject getResult();

}
